package com.matt.order.service;

import com.matt.order.dto.CustomerDto;
import com.matt.order.dto.OrderDto;
import com.matt.order.dto.PlayWithDto;
import com.matt.order.repository.OrderEnterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderEnterService {

    @Autowired
    OrderEnterMapper orderEnterMapper;

    public void orderInfoInsert(OrderDto orderDto) {
        orderEnterMapper.orderInfoInsert(orderDto);
    }

    public List<OrderDto> orderInfoList() {
        return orderEnterMapper.orderInfoList();
    }

    public List<PlayWithDto> playWithNameList() {
        return orderEnterMapper.playWithNameList();
    }

    public List<CustomerDto> customerNameList() {
        return orderEnterMapper.customerNameList();
    }

    public OrderDto orderSumInfo() {
        return orderEnterMapper.orderSumInfo();
    }

    public List<OrderDto> orderGameSumInfoList() {
        return orderEnterMapper.orderGameSumInfoList();
    }

    public List<OrderDto> orderLevelSumInfoList() {
        return orderEnterMapper.orderLevelSumInfoList();
    }

    public String orderEvaluateSumInfo() {
        return orderEnterMapper.orderEvaluateSumInfo();
    }

    public OrderDto getOrderInfoByOrderId(OrderDto orderDto) {
        return orderEnterMapper.getOrderInfoByOrderId(orderDto);
    }
}
